package com.chushouya.manager.service.common.impl;

import com.chushouya.manager.dao.entity.PartnerPromoteEntity;
import com.chushouya.manager.dao.repository.PartnerPromoteRepository;
import com.chushouya.manager.dto.admin.partner.PartnerPromoteQuery;
import com.chushouya.manager.service.common.PartnerPromoteCommonService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PartnerPromoteCommonServiceImpl implements PartnerPromoteCommonService {

    @Resource
    private PartnerPromoteRepository partnerPromoteRepository;

    @Override
    public PartnerPromoteEntity selectByPromoteLabel(String promoteLabel) {

        PartnerPromoteQuery query = new PartnerPromoteQuery();
        query.setPromoteLabel(promoteLabel);
        return partnerPromoteRepository.selectOne(query);
    }
}
